package cn.lisens;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
	
//	@Bean
//	public FilterRegistrationBean<WebMvcMetricsFilter> webMvcMetricsFilter(MetricsProperties properties,
//	        MeterRegistry registry, WebMvcTagsProvider tagsProvider) {
//	    ServerRequest request = properties.getWeb().getServer().getRequest();
//	    WebMvcMetricsFilter filter = new WebMvcMetricsFilter(registry, tagsProvider, request.getMetricName(),
//	            request.getAutotime());
//	    FilterRegistrationBean<WebMvcMetricsFilter> registration = new FilterRegistrationBean<>(filter);
//	    registration.setOrder(Ordered.HIGHEST_PRECEDENCE + 1);
//	    registration.setDispatcherTypes(DispatcherType.REQUEST, DispatcherType.ASYNC);
//	    return registration;
//	}

}
